package com.zhentao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 菜品库存表（按门店管理）
 * @TableName inventory
 */
@TableName(value ="inventory")
@Data
public class Inventory implements Serializable {
    /**
     * 库存ID（主键）
     */
    @TableId(type = IdType.AUTO)
    private Integer inventoryId;

    /**
     * 关联菜品ID（外键）
     */
    private Integer dishId;


    private Integer TypeId;

    /**
     * 菜品单位
     */
    private String dishdanwei;

    /**
     * 当前库存数量
     */
    private Integer currentStock;

    /**
     * 盘点时间
     */
    private Date date;

    /**
     * 库存预警阈值
     */
    private Integer warningStock;

    private Integer highThreshold;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private int pagenum;

    @TableField(exist = false)
    private int pagesize;

    @TableField(exist = false)
    private String cname;

    @TableField(exist = false)
    private String tname;
}